package com.cosmoplat.xikai.business.domain.dto.scada;

import com.cosmoplat.xikai.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 功能描述：故障信息新增与修改dto
 */
@ApiModel(value = "故障信息配置")
@Data
public class FaultInformationDto {
    @ApiModelProperty(value = "id")
    @Excel(name = "序号")
    private Long id;
    /**
     * 故障代码
     */
    @NotBlank(message = "故障代码不能为空")
    @Excel(name = "故障代码")
    @ApiModelProperty(value = "故障代码", example = "DV256")
    private String faultCode;
    /**
     * 故障名称
     */
    @NotBlank(message = "故障名称不能为空")
    @ApiModelProperty(value = "故障名称", example = "风机报警")
    @Excel(name = "故障名称")
    private String faultName;
    /**
     * 故障标识 0：否 1：是
     */
    @ApiModelProperty(value = "故障标识", example = "1")
//    @NotBlank(message = "派工单ID不能为空")
    @Excel(name = "故障标识")
    private Integer faultIdentification;
    /**
     * 故障描述
     */
//    @NotBlank(message = "派工单ID不能为空")
    @Excel(name = "故障描述")
    @ApiModelProperty(value = "故障描述", example = "没加油")
    private String faultDescription;
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注", example = "备注")
    private String notes;

}
